import {Controller, Get, Query} from '@nestjs/common';
import {Roles2} from "./decorator/roles.decorator";

@Controller('global')
export class GlobalController {
    @Get('index')
    @Roles2(['admin','super'])
    getIndex(@Query('role') role:string) {
        return 'global.index:'+role;
    }
}
